import fetch from '@/utils/fetch';


// 说明：添加经销商仓库
// 接口：api/product/flBusinessDealer
// 请求类型：Post
export function addFlBusinessDealer(obj) {
    return fetch({
        url: 'api/product/flBusinessDealer',
        method: 'post',
        data: obj
    });
}

// 说明：删除经销商仓库
// 接口：api/product/flBusinessDealer/{ids}
// 请求类型：Delete
export function deleteFlBusinessDealer(idArr) {
    return fetch({
        url: 'api/product/flBusinessDealer/' + idArr,
        method: 'delete'
    });
}

// 说明：修改经销商仓库
// 接口：api/product/flBusinessDealer/{id}
// 请求类型：Put
export function modifyFlBusinessDealer(id, obj) {
    return fetch({
        url: 'api/product/flBusinessDealer/' + id,
        method: 'put',
        data: obj
    })
}

// 说明：经销商仓库分页查询(条件搜索)
// 接口：api/product/flBusinessDealer/search/{page}/{size}
// 请求类型：Post
export function searchFlBusinessDealer(page, size, obj) {
    return fetch({
        url: 'api/product/flBusinessDealer/search/'+ page +'/'+ size,
        method: 'post',
        data: obj
    });
}

// 说明：获取单个经销商仓库
// 接口：api/product/flBusinessDealer/{id}
// 请求类型：get
export function getFlBusinessDealer(id) {
    return fetch({
        url: 'api/product/flBusinessDealer/' + id,
        method: 'get'
    })
}

// 说明：经销商仓库导出Excel模板
// 接口：api/product/flBusinessDealer/exprotExcelModel
// 请求类型：get
export function downTem() {
return fetch({
url: 'api/product/flBusinessDealer/exprotExcelModel',
responseType: 'blob',
method: 'get'
})
}

// 说明：经销商仓库导出Excel数据
// 接口：api/product/flBusinessDealer/exprotXls/{ids}
// 请求类型：post
export function exprotXls(ids, obj) {
return fetch({
url: 'api/product/flBusinessDealer/exprotXls/' + ids,
responseType: 'blob',
method: 'post',
data: obj
})
}

// 说明：经销商仓库导入
// 接口：api/product/flBusinessDealer/importXls
// 请求类型：post
export function importXls() {
return fetch({
url: 'api/product/flBusinessDealer/importXls',
method: 'post'
})
}
